<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <ui:composition template="Template.xhtml">
        <ui:define name="top">
            #{bundle.order}#{bundle.manage} 

        </ui:define>
        <ui:define name="content">
            <f:event listener="#{customerdemandMB.init()}"
                     type="preRenderView"></f:event>

            <!--<p:outputPanel deferred="true" >-->
            <!--<shiro:hasPermission name="user:V">--> 
            <h:form id="form">


                <p:panelGrid styleClass="noborder left"  style="width:50% " columns="2"   >
                    <p:outputLabel for="begin" value="导入日期:" />
                    <p:calendar id="begin" value="#{customerdemandMB.copyStartDate}" pattern="yyyy-MM-dd" mask="true">
                         
                    </p:calendar>
                    <p:outputLabel for="end" value="目标日期:" />
                    <p:calendar id="end" value="#{customerdemandMB.copyEndDate}" pattern="yyyy-MM-dd" mask="true">
                         
                    </p:calendar>
                    <p:commandButton value="#{bundle.conform}" validateClient="true"   action="#{customerdemandMB.copyCD()}"  update="@form,:growl">
                        <p:confirm header="#{bundle.conform}" message="#{bundle.conform}" icon="ui-icon-alert" />
                    </p:commandButton>
<!--                        <p:button value="#{bundle.back}#{bundle.list}"    outcome="list" style="margin-left: 15px"  >
                    </p:button>-->
                </p:panelGrid>


                <p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
                    <p:commandButton value="Yes" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
                    <p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
                </p:confirmDialog>
            </h:form>
            <!--</p:outputPanel>-->
            <!--</shiro:hasPermission>-->
        </ui:define>
    </ui:composition>
</html>

